<template>
    <svg class="grid" :width="width" :height="height" xmlns="http://www.w3.org/2000/svg">
        <defs>
            <pattern id="smallGrid" width="7.236328125" height="7.236328125" patternUnits="userSpaceOnUse">
                <path d="M 7.236328125 0 L 0 0 0 7.236328125" fill="none" stroke="#CFCFCF4D" stroke-width="1">
                </path>
            </pattern>
            <pattern id="grid" width="36.181640625" height="36.181640625" patternUnits="userSpaceOnUse">
                <rect width="36.181640625" height="36.181640625" fill="url(#smallGrid)"></rect>
                <path d="M 36.181640625 0 L 0 0 0 36.181640625" fill="none" stroke="rgba(255,255,255, 0.8)" stroke-width="1">
                </path>
            </pattern>
        </defs>
        <rect :width="width" :height="height" fill="url(#grid)"></rect>
    </svg>
</template>
<script>
export default {
    props: {
        width: {
            type: Number
        },
        height: {
            type: Number
        }
    }
};
</script>
<style lang="scss" scoped>
.grid {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    border: 3px solid rgba(255,255,255, 0.5);
}
</style>